package com.adcc.ags.cgw.entity.user;

import com.google.common.base.Strings;

/**
 * 黑名单用户实体
 */
public class BlackListUser {

    // ID
    private String id = Strings.nullToEmpty("");

    // 名称
    private String name = Strings.nullToEmpty("");

    // 发送地址
    private String sendAddress = Strings.nullToEmpty("");

    // 接收地址
    private String[] recvAddress = new String[]{};

    // SMI
    private String[] smi = new String[]{};

    // 机尾号
    private String[] an = new String[]{};

    // 特殊字符
    private SpecLabel specLabel = new SpecLabel();

    // 是否为应急用户
    private boolean isEmergency = false;

    /**
     * 构造函数
     */
    public BlackListUser() {

    }

    /**
     * 构造函数
     * @param id
     * @param name
     */
    public BlackListUser(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSendAddress() {
        return sendAddress;
    }

    public void setSendAddress(String sendAddress) {
        this.sendAddress = sendAddress;
    }

    public String[] getRecvAddress() {
        return recvAddress;
    }

    public void setRecvAddress(String[] recvAddress) {
        this.recvAddress = recvAddress;
    }

    public String[] getSmi() {
        return smi;
    }

    public void setSmi(String[] smi) {
        this.smi = smi;
    }

    public String[] getAn() {
        return an;
    }

    public void setAn(String[] an) {
        this.an = an;
    }

    public SpecLabel getSpecLabel() {
        return specLabel;
    }

    public void setSpecLabel(SpecLabel specLabel) {
        this.specLabel = specLabel;
    }

    public boolean isEmergency() {
        return isEmergency;
    }

    public void setEmergency(boolean isEmergency) {
        this.isEmergency = isEmergency;
    }
}
